﻿namespace WebResource.ApiModels
{
    /// <summary>
    /// 获取所有本地文件的列表响应
    /// </summary>
    public class GetLocalFileItemsResponse
    {
        /// <summary>
        /// 文件夹
        /// </summary>
        public List<FolderInfo> Folders { get; set; } = new();
        /// <summary>
        /// 文件
        /// </summary>
        public List<FileItemInfo> Files { get; set; } = new();

        /// <summary>
        /// 文件夹信息
        /// </summary>
        public class FolderInfo
        {
            /// <summary>
            /// 文件夹名称
            /// </summary>
            public string FolderName { get; set; } = "";
        }
        /// <summary>
        /// 文件信息
        /// </summary>
        public class FileItemInfo
        {
            /// <summary>
            /// 文件名
            /// </summary>
            public string FileName { get; set; } = string.Empty;
            /// <summary>
            /// 文件大小
            /// </summary>
            public long Size { get; set; }
        }

    }
}
